import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
//! 顶上体温一排的5个图标
import 'components/home_header.dart';
// ! 中间的卡片
import 'components/home_center_card.dart';

// import '../../utils/storage.dart';
// import '../../provider/index.dart';
// import 'package:provider/provider.dart';
// import '../../http/index.dart';

class HomePage extends StatefulWidget {
  HomePage({Key key}) : super(key: key);

  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: Container(
      padding: EdgeInsets.fromLTRB(0, 0, 0, 0),
      decoration: BoxDecoration(color: Color.fromRGBO(245, 245, 245, 1)),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          // xx的家长和体温两排
          Container(
            padding: EdgeInsets.fromLTRB(10.h, 100.h, 10.h, 10.h),
            decoration: BoxDecoration(color: Color.fromRGBO(255, 255, 255, 1)),
            child: Column(
              children: [
                // XXX的家长
                Padding(
                  padding: EdgeInsets.fromLTRB(10.w, 10.h, 0, 40.h),
                  child: Row(
                    children: [
                      Text(
                        'XXX的家长',
                        style: TextStyle(
                            fontSize: 20.0, fontWeight: FontWeight.w700),
                      ),
                    ],
                  ),
                ),
                // 体温等几个按钮
                IconListToHeader()
              ],
            ),
          ),
          // 第二排
          CenterCard(),

          // * 班级动态
          Container(
            padding: EdgeInsets.fromLTRB(20.w, 10.h, 0, 17.h),
            child: Text(
              '班级动态',
              style: TextStyle(fontSize: 17.0, fontWeight: FontWeight.w700),
            ),
          ),

          Text('data2'),
          Text('data3'),
        ],
      ),
    ));
  }
}
